class_name HurtComponent
extends Area2D

#受到伤害的信号
signal hurt


func _on_area_entered(area: Area2D) -> void:
	var hit_component = area as HitComponent
	hurt.emit(hit_component.hit_damage)
